package com.Java.train.business.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.sql.Time;
import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 余票信息
 * </p>
 *
 * @author luomoxingchen
 * @since 2024-10-01
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("daily_train_ticket")
@ApiModel(value = "DailyTrainTicket对象", description = "余票信息")
@ToString
public class DailyTrainTicket implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty("日期")
    @TableField("date")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
//    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date date;

    @ApiModelProperty("车次编号")
    @TableField("train_code")
    private String trainCode;

    @ApiModelProperty("出发站")
    @TableField("start")
    private String start;

    @ApiModelProperty("出发站拼音")
    @TableField("start_pinyin")
    private String startPinyin;

    @ApiModelProperty("出发时间")
    @TableField("start_time")
    private Time startTime;

    @ApiModelProperty("出发站序|本站是整个车次的第几站")
    @TableField("start_index")
    private Integer startIndex;

    @ApiModelProperty("到达站")
    @TableField("end")
    private String end;

    @ApiModelProperty("到达站拼音")
    @TableField("end_pinyin")
    private String endPinyin;

    @ApiModelProperty("到站时间")
    @TableField("end_time")
    private Time endTime;

    @ApiModelProperty("到站站序|本站是整个车次的第几站")
    @TableField("end_index")
    private Integer endIndex;

    @ApiModelProperty("一等座余票")
    @TableField("ydz")
    private Integer ydz;

    @ApiModelProperty("一等座票价")
    @TableField("ydz_price")
    private BigDecimal ydzPrice;

    @ApiModelProperty("二等座余票")
    @TableField("edz")
    private Integer edz;

    @ApiModelProperty("二等座票价")
    @TableField("edz_price")
    private BigDecimal edzPrice;

    @ApiModelProperty("软卧余票")
    @TableField("rw")
    private Integer rw;

    @ApiModelProperty("软卧票价")
    @TableField("rw_price")
    private BigDecimal rwPrice;

    @ApiModelProperty("硬卧余票")
    @TableField("yw")
    private Integer yw;

    @ApiModelProperty("硬卧票价")
    @TableField("yw_price")
    private BigDecimal ywPrice;

    @ApiModelProperty("新增时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty("修改时间")
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}
